$(function () {
    $.post("../findAllOrder.do", function (data) {
        $(".tableDiv").empty();
        for (var i = 0; i < data.length; i++) {
            var table = `<table class="bill">
\t
\t<tr>
    \t<td class="td_1">${data[i].tableId}</td>
        <td class="td_2"><a href="javascript:void(0)">已下单</a></td>
    </tr>
    <tr>
        <td class="td_1">${data[i].date}</td>
        <td class="td_2 state">￥:${data[i].foodPrice}</td>
    </tr>
</table>`;
            $(".tableDiv").append(table);
        }
    }, "json");
});